package controller.decoders;

import java.awt.event.KeyEvent;

import controller.dispatchers.AbstractDispatcher;
import controller.factories.CommandFactory;
import controller.listeners.KeyboardListener;

public class KeyEventDecoder extends EventDecoder
{
	// KeyEvent specific variables
	protected KeyboardListener listener;
	protected KeyEvent keyEvent;
	protected String actionString;

	public KeyEventDecoder(KeyboardListener listener,
			AbstractDispatcher modelDispatcher,
			AbstractDispatcher viewDispatcher,
			CommandFactory modelCommandFactory,
			CommandFactory viewCommandFactory)
	{
		this.listener = listener;
		this.modelDispatcher = modelDispatcher;
		this.viewDispatcher = viewDispatcher;
		this.modelCommandFactory = modelCommandFactory;
		this.viewCommandFactory = viewCommandFactory;
	}

	protected void retrieveCommand()
	{
		keyEvent = listener.getKeyEvent();
	}

	public void parseCommand()
	{
		// implement this
	}
}
